package com.llb666.e.shop.infrastructure.convert;

import com.llb666.e.shop.domain.entity.OrderItems;
import com.llb666.e.shop.infrastructure.po.OrderItemsPo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 斌~
 * @date 2022/8/7 下午8:45
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface OrderItemsCvt {
    OrderItemsCvt INSTANCE = Mappers.getMapper(OrderItemsCvt.class);

    OrderItemsPo do2po(OrderItems orderItems);

    OrderItems po2do(OrderItemsPo orderItemsPo);

    List<OrderItems> po2doList(List<OrderItemsPo> orderItemsPoList);
}
